Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(stackable-telemetry): Add RollingFileAppender #933

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

xeniape
Copy link
Member

@xeniape xeniape commented Dec 19, 2024

Description

Part of stackabletech/issues#639. Adds the RollingFileAppender to the stackable-telemetry crate.

Add RollingFileAppender to stackable-telemetry (as was done in #814).

Definition of Done Checklist

  • Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
  • Please make sure all these things are done and tick the boxes

Author

Preview Give feedback

Reviewer

Preview Give feedback

Acceptance

Preview Give feedback

@xeniape xeniape self-assigned this Dec 19, 2024
Copy link
Member

@Techassi Techassi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The core change looks good, but I left a few comments / ideas on how we should design the API interface.

crates/stackable-telemetry/CHANGELOG.md Outdated Show resolved Hide resolved
crates/stackable-telemetry/src/tracing/mod.rs Outdated Show resolved Hide resolved
crates/stackable-telemetry/src/tracing/settings/mod.rs Outdated Show resolved Hide resolved
Copy link
Member

@NickLarsenNZ NickLarsenNZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @xeniape. Just a couple of comments.

crates/stackable-telemetry/src/tracing/mod.rs Outdated Show resolved Hide resolved
crates/stackable-telemetry/src/tracing/mod.rs Show resolved Hide resolved
@xeniape
Copy link
Member Author

xeniape commented Jan 16, 2025

Thanks for all the feedback! Adjusted everything in bfe89a7

@Techassi Techassi changed the title feat: add RollingFileAppender to stackable-telemetry feat(stackable-telemetry): Add RollingFileAppender Jan 16, 2025
xeniape and others added 2 commits January 17, 2025 10:18
Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>
@xeniape xeniape requested a review from Techassi January 17, 2025 09:22
Comment on lines +482 to +491
pub fn with_file_output(
self,
file_log_settings: FileLogSettings,
) -> TracingBuilder<builder_state::Config> {
TracingBuilder {
service_name: self.service_name,
console_log_settings: self.console_log_settings,
file_log_settings,
otlp_log_settings: self.otlp_log_settings,
otlp_trace_settings: self.otlp_trace_settings,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: #940 changed the API interface of these functions and as such I suggest to also change it here to be in line.

Suggested change
pub fn with_file_output(
self,
file_log_settings: FileLogSettings,
) -> TracingBuilder<builder_state::Config> {
TracingBuilder {
service_name: self.service_name,
console_log_settings: self.console_log_settings,
file_log_settings,
otlp_log_settings: self.otlp_log_settings,
otlp_trace_settings: self.otlp_trace_settings,
pub fn with_file_output(
self,
file_log_settings: impl Into<FileLogSettings>,
) -> TracingBuilder<builder_state::Config> {
TracingBuilder {
service_name: self.service_name,
console_log_settings: self.console_log_settings,
file_log_settings: file_log_settings.into(),
otlp_log_settings: self.otlp_log_settings,
otlp_trace_settings: self.otlp_trace_settings,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Development: In Review
Development

Successfully merging this pull request may close these issues.

3 participants